package com.bto.solar.work.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/19 8:15
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ApprovalReq extends BaseReq{

    /**
     *  内审、总部审核、越秀审核 参考状态常量
     *
    public static final String APPROVAL_INNER = "APPROVAL_INNER";
    public static final String APPROVAL_BTO = "APPROVAL_BTO";
    public static final String APPROVAL_LEASE = "APPROVAL_LEASE";
     */
    @ApiModelProperty("审批类型")
    private String approvalType;

    @ApiModelProperty("结算类型")
    private Byte setType;

    /**
    *  PASS  REJECT 参考状态常量
    */
    @ApiModelProperty("审批结果")
    private String result;

    @ApiModelProperty("决绝理由")
    private String rejectReason;

    @ApiModelProperty("审核拒绝标签")
    private List<String> rejectTags;

    @ApiModelProperty("审核拒绝文件")
    private List<RejectFile> rejectFiles;

    @ApiModelProperty("审批人")
    private Long approver;

    @Data
    @NoArgsConstructor
    @Accessors(chain = true)
    public static class RejectFile{
        @ApiModelProperty("文件名")
        private String fileName;
        @ApiModelProperty("类型")
        private String type;
        @ApiModelProperty("地址")
        private String fileSrc;
    }

}
